#ifndef TCP_H
#define TCP_H

#include <QMainWindow>
#include <QTcpSocket>

namespace Ui {
class tcp;
}

class tcp : public QMainWindow
{
    Q_OBJECT

public:
    explicit tcp(QWidget *parent = 0);
    ~tcp();

private slots:
    void on_connectButton_clicked();
    //void on_sendButton_clicked();
    void onConnected();
    void onDisconnected();
    void onReceived();

    void on_led_on_clicked();

    void on_led_off_clicked();

    void on_fan_on_clicked();

    void on_fan_off_clicked();

    void on_bee_on_clicked();

    void on_bee_off_clicked();

private:
    Ui::tcp *ui;
    QTcpSocket* sock;
};

#endif // TCP_H
